package com.chenye.zk.watcher;

import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;

/**
 * @Auther:chenye
 * @Data:2018/4/24
 * @Description:
 */
public class TestZkWatch implements Watcher {
    @Override
    public void process(WatchedEvent event) {
        if(event.getType()==Event.EventType.NodeCreated){
            System.out.println("WatchedEvent has being started");
        }
    }
}
